package com.ruoyi.template.dto;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

public class TemplateRequest {

    @NotEmpty(message = "模板名称不能为空")
    private String templateName;

    @NotEmpty(message = "关联菜单不能为空")
    private String menuIds;

    private String templateId;

    private String createdBy;
    @NotNull(message = "审核人信息不能为空")
    @NotEmpty(message = "审核人列表不能为空")
    private List<TemplateDetailRequest> details;




    public String getTemplateName() {
        return templateName;
    }

    public void setTemplateName(String templateName) {
        this.templateName = templateName;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public List<TemplateDetailRequest> getDetails() {
        return details;
    }

    public void setDetails(List<TemplateDetailRequest> details) {
        this.details = details;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public String getMenuIds() {
        return menuIds;
    }

    public void setMenuIds(String menuIds) {
        this.menuIds = menuIds;
    }

    @Override
    public String toString() {
        return "TemplateRequest{" +
                "templateName='" + templateName + '\'' +
                ", menuIds='" + menuIds + '\'' +
                ", createdBy='" + createdBy + '\'' +
                ", details=" + details +
                '}';
    }
}
